<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
    <input class="hidden" id="c-initiator_id"  name="row[initiator_id]"  value="{$row.initiator_id}">
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Initiator_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-initiator_id" data-rule="required" data-source="initiator/index" class="form-control selectpage" name="row[initiator_id]" type="text" value="{$row.initiator_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('Project')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-cooperation_id" data-rule="required" data-source="fastflow/bill/cooperation/index" data-params='{"custom[status]":"2"}' data-field="cname" class="form-control selectpage" name="row[cooperation_id]" type="text" value="{$row.cooperation_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Year')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-year" class="form-control datetimepicker" data-date-format="YYYY" data-use-current="true" name="row[year]" type="text" value="{$row.year}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Main_matters')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-main_matters" class="form-control editor" rows="5" name="row[main_matters]" cols="50">{$row.main_matters|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Participating_departments')}:</label>
        <div class="col-xs-12 col-sm-7">
            {$departmentList}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Examinefile')}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input id="c-examinefile" class="form-control" size="50" name="row[examinefile]" type="text" value="{$row.examinefile|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-examinefile" class="btn btn-danger faupload" data-input-id="c-examinefile" data-multiple="false" data-preview-id="p-examinefile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-examinefile" class="btn btn-primary fachoose" data-input-id="c-examinefile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-examinefile"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-examinefile"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]" cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:$row.endtime?datetime($row.endtime):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-7">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
